package com.group.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.group.dao.TbBillMapper;
import com.group.pojo.TbBill;
import com.group.pojo.TbBillExample;
import com.group.pojo.TbVerify;
import com.group.service.BillService;
/**
 * 0 --- 报修拒绝
 * 1 --- 待审核
 * 2 --- 待维修
 * 3 --- 待评价的 
 * 4 --- 已评价的 
 * @author YSH
 *
 */
@Service
public class BillServiceImpl implements BillService {
	@Autowired
	private TbBillMapper billMapper;
	 
	@Override
	public List<TbBill> query(TbBill bill) {
		List<TbBill> list = billMapper.query(bill);
		return list;
	}


	@Override
	public List<TbBill> queryMultiStatus(TbBill bill) {
		String billStatus = bill.getBillStatus();
		String[] split = billStatus.split(",");
		bill.setBillMultiStatus(split);
		List<TbBill> list = billMapper.queryMultiStatus(bill);
		return list;
	}
}
